<?php

use Tools\UEnv;

if (!function_exists('web_env')) {
    /**
     * 获取网站配置
     *
     * @return array
     */
    function web_env(): array
    {

        return [
            "SystemName" => UEnv::get("SystemName", "授权系统名称"),
            "username" => UEnv::get("username", "admin"),
            "password" => UEnv::get("password", md5("admin")),
            "SiteKeywords" =>UEnv::get("SiteKeywords","授权,开源"),
            "SiteDescription" =>UEnv::get("SiteDescription","授权系统由基蒲来写的"),
            "icp" => UEnv::get("icp",""),
            "RandomSalt" => UEnv::get("RandomSalt","jipu_YYDS"),
            "ApiSwitch"=> UEnv::get("ApiSwitch","false")
        ];
    }
}
